﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewCompany.aspx.cs" Inherits="Main_Company_NewCompany"
    Culture="en-GB" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>New Company</title>
    <link href="../../Styles/accounts.css" rel="Stylesheet" type="text/css" />

    <script src="../../Menu/js/jquery.min.js" type="text/javascript"></script>

    <link href="../../Styles/HorizontalTab.css" rel="stylesheet" type="text/css" />

    <script src="../../JavaScript/HorizontalTab.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true">
    </asp:ScriptManager>
    <div style="width: 100%; height: 6%;">
        <div style="background-image: url('../../Images/top1.jpg'); background-repeat: repeat-x;
            height: 43px; vertical-align: top; width: 100%;">
            <div style="padding-left: 20px; height: 40px; width: 171px; float: left;">
                <img src="../../Images/logo.jpg" style="height: 40px; padding-top: 3px; width: 171px;" />
            </div>
            <div style="float: right; margin-top: 5px; width: 80px;">
                <asp:HyperLink ID="HypHome" runat="server" ImageUrl="../../Images/login/home1.png"
                    NavigateUrl="~/Welcome.aspx" Target="contentframe" Style="float: left;"></asp:HyperLink>&nbsp;&nbsp;
                <asp:HyperLink ID="hypImg" runat="server" ImageUrl="../../Images/login/logout1.png"
                    NavigateUrl="~/AdminLogin.aspx" Target="_parent"></asp:HyperLink>
            </div>
            <div style="clear: both">
            </div>
        </div>
    </div>
    <div style="width: 100%; height: 94%; margin-bottom: 8%;">
        <div class="divmain" style="margin-top: 15px; margin-left: 2%; width: 100%">
            <acc:heading ID="pagehead" runat="server" HeadingText="Create Company" />
        </div>
        <div align="center" style="margin-bottom:7px;">
            <asp:Label ID="lblMsg" runat="server" Font-Bold="true" CssClass="false"></asp:Label></div>
         <%-- <div align="center" class="tablecontent" style="font-family:Verdana, Myriad Pro; background-image:url('../../Images/BOM1.jpg'); background-repeat:repeat-x; font-size:14px; width: 25%; margin-left: 25%; margin-right:50%"> 
            <asp:Label ID="lblCompanyName" runat="server" Font-Bold="true" Text="Company Name:" ></asp:Label>
          </div> --%>
        <asp:UpdateProgress DynamicLayout="false" ID="UpdProgress" runat="server">
            <ProgressTemplate>
                <div align="center">
                    <img src="../../Images/ajax-loader.gif" /></div>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <div id="wrapper" style="width: 50%; margin-left: 25%; margin-right: 25%">
            <ul class="tabs">
                <li><a href="javascript:void(0)" class="defaulttab" rel="Companyinfo" id="companyin"
                    runat="server">Company Information</a></li>
                <li><a href="javascript:void(0)" rel="ContactsTabs" id="companydet" runat="server">Contact
                    Details</a></li>
                <li><a href="javascript:void(0)" rel="TabRegistrations" id="companyreg" runat="server">
                    Registration Details</a></li>
            </ul>
            <div class="tab-content" id="Companyinfo" runat="server">
                <%--<asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>--%>
                        <table class="tablecontent" style="width: 100%">
                            <tr>
                                <td class="headtd" colspan="2">
                                    Company Details
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Company Name <span class="required">*</span>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextCompanyName" ToolTip="Enter Company Name" runat="server" CssClass="input" />
                                    <asp:RequiredFieldValidator ID="RFVCompanyname" ValidationGroup="CompanyInfo" runat="server"
                                        ControlToValidate="TextCompanyName" ErrorMessage="Provide Company Name" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Trading Name<span class="required">*</span>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtTradingName" runat="server" ToolTip="Enter Trading Name" CssClass="input" />
                                    <asp:RequiredFieldValidator ID="RFVTradingName" runat="server" ValidationGroup="CompanyInfo"
                                        ControlToValidate="TxtTradingName" ErrorMessage="Provide Trading Name" />
                                </td>
                            </tr>
                            <tr>
                                <td class="headtd" colspan="2">
                                    Type of business, status & company
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Type Of Business <span class="required">*</span>
                                </td>
                                <td>
                                    <asp:UpdatePanel ID="UPanelBuisness" runat="server">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="DDLTypeOfBuisness" runat="server" CssClass="input" OnSelectedIndexChanged="DDLTypeOfBuisness_SelectedIndexChanged"
                                                AutoPostBack="True" />
                                            <asp:TextBox ID="TxtOthers" runat="server" Visible="False" CssClass="input" />
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Status<span class="required">*</span>
                                </td>
                                <td>
                                    <asp:UpdatePanel ID="UPanelStatus" runat="server">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="DDLStatus" runat="server" CssClass="input" OnSelectedIndexChanged="DDLStatus_SelectedIndexChanged"
                                                AutoPostBack="True" />
                                            <asp:TextBox ID="TxtStatus" runat="server" Visible="False" CssClass="input" Width="88px" />
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td class="headtd" colspan="2">
                                    Maintain
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBoxList ID="chk" runat="server">
                                        <asp:ListItem Text="Accounting" Value="1" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="Invoicing" Value="2"></asp:ListItem>
                                        <asp:ListItem Text="Inventory" Value="3"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                            </tr>
                            <tr>
                                <td class="headtd" colspan="2">
                                    Financial year
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Accounting Year Starting From<span class="required">*</span>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtAccountingYearStarting" runat="server" ToolTip="Enter Starting Accounting Year"
                                        onBlur="GetFinancialYearStarting()" CssClass="input" Width="80px" />
                                    <asp:ImageButton ID="ImgBtnAccountingYearStarting" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxtoolkit:calendarextender id="CalExtAccountingYearStarting" runat="server" targetcontrolid="TxtAccountingYearStarting"
                                        popupbuttonid="ImgBtnAccountingYearStarting" format="dd/MM/yyyy" enabled="True" />
                                    <ajaxtoolkit:maskededitextender id="AccountStartMask" runat="server" culturename="en-GB"
                                        enabled="True" targetcontrolid="TxtAccountingYearStarting" masktype="Date" displaymoney="Left"
                                        acceptnegative="Left" errortooltipenabled="True" mask="99/99/9999" cultureampmplaceholder="AM;PM"
                                        culturecurrencysymbolplaceholder="£" culturedateformat="DMY" culturedateplaceholder="/"
                                        culturedecimalplaceholder="." culturethousandsplaceholder="," culturetimeplaceholder=":"></ajaxtoolkit:maskededitextender>
                                    <ajaxtoolkit:maskededitvalidator id="AccountStartValmask" runat="server" controlextender="AccountStartMask"
                                        controltovalidate="TxtAccountingYearStarting" emptyvaluemessage="Date is Required"
                                        invalidvaluemessage="Date is Invalid" display="Dynamic" emptyvalueblurredtext="*"
                                        validationgroup="CompanyInfo" errormessage="AccountStartValmask" />
                                    <asp:RequiredFieldValidator ID="RFVAccountingYear" runat="server" ValidationGroup="CompanyInfo"
                                        ControlToValidate="TxtAccountingYearStarting" ErrorMessage="Provide Year" />

                                    <script type="text/javascript" language="javascript">
                            function GetFinancialYearStarting()
                            {
                                var fyear_start=document.getElementById('<%=TxtAccountingYearStarting.ClientID%>').value;
                                 //alert(year);
                                 if(fyear_start!='')
                                 {
                                     var selectedDateTime = fyear_start; 
                                     var splitarray = new Array(); 
                                     splitarray= selectedDateTime.split("/"); 
                                     var sdate=splitarray[0];
                                     var smonth=splitarray[1];
                                     var syear=splitarray[2];
                                     if(sdate!='' && smonth!='' && syear!='')
                                     {
                                        var s_date=parseInt(sdate);
                                        var s_month=parseInt(smonth);
                                        var s_year=parseInt(syear);
                                        var end_year="";
                                        if(s_month>=4)
                                        {
                                          end_year=s_year+1;
                                        }
                                        else{
                                           end_year=s_year;
                                       }

                                       if (!isNaN(s_date) && !isNaN(s_month) && !isNaN(s_year)) {
                                           document.getElementById('<%=TxtAccountingLast.ClientID%>').value = "31/03/" + end_year;
                                       }
                                     }
                                 }
                             }
                           
                            
                                    </script>

                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Last day of Accounting Period <span class="required">*</span>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtAccountingLast" ToolTip="Enter Ending Date of accounting Year"
                                        runat="server" CssClass="input" Width="80px" />
                                    <asp:ImageButton ID="ImgAccountingLast" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxtoolkit:calendarextender id="CalExtAccountingLast" runat="server" targetcontrolid="TxtAccountingLast"
                                        popupbuttonid="ImgAccountingLast" format="dd/MM/yyyy" enabled="True" />
                                    <ajaxtoolkit:maskededitextender id="MaskEditExtAccountLast" runat="server" culturename="en-GB"
                                        enabled="True" targetcontrolid="TxtAccountingLast" masktype="Date" displaymoney="Left"
                                        acceptnegative="Left" errortooltipenabled="True" mask="99/99/9999" cultureampmplaceholder="AM;PM"
                                        culturecurrencysymbolplaceholder="£" culturedateformat="DMY" culturedateplaceholder="/"
                                        culturedecimalplaceholder="." culturethousandsplaceholder="," culturetimeplaceholder=":"></ajaxtoolkit:maskededitextender>
                                    <ajaxtoolkit:maskededitvalidator id="MaskEditValAccountLast" runat="server" controlextender="MaskEditExtAccountLast"
                                        controltovalidate="TxtAccountingLast" emptyvaluemessage="Date is Required" invalidvaluemessage="Date is Invalid"
                                        display="Dynamic" emptyvalueblurredtext="*" validationgroup="CompanyInfo" errormessage="MaskEditValAccountLast" />
                                    <asp:RequiredFieldValidator ID="RFVLastAccounting" runat="server" ValidationGroup="CompanyInfo"
                                        ControlToValidate="TxtAccountingLast" ErrorMessage="Select Last Accounting Period" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:Button ID="BtnSave" runat="server" CssClass="button" ValidationGroup="CompanyInfo"
                                        Text="Save" OnClick="BtnSave_Click" />
                                    &nbsp;
                                    <asp:Button ID="BtnCancel" runat="server" Text="Close" OnClick="BtnCancel_Click"
                                        CssClass="button" />
                                </td>
                            </tr>
                        </table>
                   <%-- </ContentTemplate>
                </asp:UpdatePanel>--%>
            </div>
            <div class="tab-content" id="ContactsTabs" runat="server">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <table class="tablecontent" style="width: 100%">
                            <tr>
                                <td class="headtd" colspan="2">
                                    Address Details
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Address Line1
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtAdress1" ToolTip="Enter Address1" runat="server" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Address Line2
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtAddress2" ToolTip="Enter Address2" runat="server" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Address Line3
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtAddress3" ToolTip="Enter Address3" runat="server" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Address Line4
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtAddress4" ToolTip="Enter Address4" runat="server" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Place
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtPlace" ToolTip="Enter Place" runat="server" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Pincode
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtPincode" ToolTip="Enter Pincode" runat="server" CssClass="input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Country
                                </td>
                                <td>
                                    <asp:DropDownList ID="DDLCountry" runat="server" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Lblstate" runat="server" Text="State" />
                                </td>
                                <td>
                                    <asp:DropDownList ID="DDLState" runat="server" CssClass="input">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="headtd" colspan="2">
                                    Phone & Fax Numbers
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Phone
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxPhone" ToolTip="Enter Contact Number" runat="server" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Fax
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxFax" runat="server" ToolTip="Enter Fax" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="headtd" colspan="2">
                                    E mail & Internet
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Email
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxEmail" runat="server" ToolTip="Enter Email" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Website
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxWebsite" runat="server" ToolTip="Enter Website" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="headtd" colspan="2">
                                    Others
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Business Activity
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxBuisnessActivity" runat="server" ToolTip="Enter Buisness Activity"
                                        CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="LblMiscellaneous" runat="server" Text="Miscellaneous" />
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtMiscellaneous1" runat="server" ToolTip="Enter Miscellaneous"
                                        CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Miscellaneous
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtMiscellaneous2" runat="server" CssClass="input" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:Button ID="Button1" runat="server" Text="Save" CssClass="button" OnClick="Button1_Click" />
                                    &nbsp;
                                    <asp:Button ID="Button2" runat="server" Text="Close" OnClick="Button2_Click" CssClass="button" />
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div class="tab-content" id="TabRegistrations" runat="server">
                <asp:UpdatePanel ID="UpdPanelRegDetails" runat="server">
                    <ContentTemplate>
                        <table class="tablecontent" style="width: 100%">
                            <tr>
                                <td class="headtd" colspan="4">
                                    Registraion Detail
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Permanent A/c No.
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtPermanant" runat="server" ToolTip="Enter Permanant A/c No. Date"
                                        CssClass="input" />
                                </td>
                                <td>
                                    Date
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtDatePermanant" runat="server" CssClass="input" Width="80px" />
                                    <asp:ImageButton ID="ImgBtnDatePermanant" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxtoolkit:calendarextender id="CalExtDatePermanent" runat="server" targetcontrolid="TxtDatePermanant"
                                        popupbuttonid="ImgBtnDatePermanant" format="dd/MM/yyyy" enabled="True">
                    </ajaxtoolkit:calendarextender>
                                    <ajaxtoolkit:maskededitextender id="MaskEditExtParmanent" runat="server" culturename="en-GB"
                                        enabled="True" targetcontrolid="TxtDatePermanant" masktype="Date" displaymoney="Left"
                                        acceptnegative="Left" errortooltipenabled="True" mask="99/99/9999" cultureampmplaceholder="AM;PM"
                                        culturecurrencysymbolplaceholder="£" culturedateformat="DMY" culturedateplaceholder="/"
                                        culturedecimalplaceholder="." culturethousandsplaceholder="," culturetimeplaceholder=":">
                    </ajaxtoolkit:maskededitextender>
                                    <ajaxtoolkit:maskededitvalidator id="MaskEditValParmanant" runat="server" controlextender="MaskEditExtParmanent"
                                        controltovalidate="TxtDatePermanant" emptyvaluemessage="Date is Required" invalidvaluemessage="Date is Invalid"
                                        display="Dynamic" emptyvalueblurredtext="*" errormessage="MaskEditValParmanant">
                    &nbsp;&nbsp;
                    </ajaxtoolkit:maskededitvalidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Tax Deduction A/C
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtTaxdeduction" runat="server" ToolTip="Enter Tax Deduction A/c No."
                                        CssClass="input" />
                                </td>
                                <td>
                                    Date
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtdateTaxDeduction" runat="server" ToolTip="Enter Tax Deduction A/c No. Date"
                                        CssClass="input" Width="80px" />
                                    <asp:ImageButton ID="ImgBtnTaxDeduction" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxtoolkit:calendarextender id="CalExtTaxDeduction" runat="server" targetcontrolid="TxtdateTaxDeduction"
                                        popupbuttonid="ImgBtnTaxDeduction" format="dd/MM/yyyy" enabled="True">
                    </ajaxtoolkit:calendarextender>
                                    <ajaxtoolkit:maskededitextender id="MaskEditExtTax" runat="server" culturename="en-GB"
                                        enabled="True" targetcontrolid="TxtdateTaxDeduction" masktype="Date" displaymoney="Left"
                                        acceptnegative="Left" errortooltipenabled="True" mask="99/99/9999" cultureampmplaceholder="AM;PM"
                                        culturecurrencysymbolplaceholder="£" culturedateformat="DMY" culturedateplaceholder="/"
                                        culturedecimalplaceholder="." culturethousandsplaceholder="," culturetimeplaceholder=":">
                    </ajaxtoolkit:maskededitextender>
                                    <ajaxtoolkit:maskededitvalidator id="MaskEditValTax" runat="server" controlextender="MaskEditExtTax"
                                        controltovalidate="TxtdateTaxDeduction" emptyvaluemessage="Date is Required"
                                        invalidvaluemessage="Date is Invalid" display="Dynamic" emptyvalueblurredtext="*"
                                        errormessage="MaskEditValTax">
                    &nbsp;&nbsp;
                    </ajaxtoolkit:maskededitvalidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CHKVat" AutoPostBack="true" runat="server" Text="VAT TIN"></asp:CheckBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtBoxVat" runat="server" CssClass="input" ToolTip="Vat No." />
                                </td>
                                <td>
                                    <asp:Label ID="LblVatDate" runat="server" Text="Date" />
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtVatDate" runat="server" CssClass="input" Width="80px" ToolTip="Enter Vat No. Date" />
                                    <asp:ImageButton ID="ImgBtnVatDate" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxtoolkit:calendarextender id="CalExtVatDate" runat="server" targetcontrolid="TxtVatDate"
                                        popupbuttonid="ImgBtnVatDate" format="dd/MM/yyyy" enabled="True">
                    </ajaxtoolkit:calendarextender>
                                    <ajaxtoolkit:maskededitextender id="MaskEditExtVat" runat="server" culturename="en-GB"
                                        enabled="True" targetcontrolid="TxtVatDate" masktype="Date" displaymoney="Left"
                                        acceptnegative="Left" errortooltipenabled="True" mask="99/99/9999" cultureampmplaceholder="AM;PM"
                                        culturecurrencysymbolplaceholder="£" culturedateformat="DMY" culturedateplaceholder="/"
                                        culturedecimalplaceholder="." culturethousandsplaceholder="," culturetimeplaceholder=":">
                    </ajaxtoolkit:maskededitextender>
                                    <ajaxtoolkit:maskededitvalidator id="MaskEditValVat" runat="server" controlextender="MaskEditExtVat"
                                        controltovalidate="TxtVatDate" emptyvaluemessage="Date is Required" invalidvaluemessage="Date is Invalid"
                                        display="Dynamic" emptyvalueblurredtext="*" errormessage="MaskEditValVat">
                    &nbsp;&nbsp;
                    </ajaxtoolkit:maskededitvalidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CHKInterstate" runat="server" AutoPostBack="true" Text="Inter-State tax regn." />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxinnerState" runat="server" CssClass="input" ToolTip="Enter Inter State tax regn. no." />
                                </td>
                                <td>
                                    <asp:Label ID="LblInterstateDate" runat="server" Text="Date" />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxInterStateDate" runat="server" ToolTip="Enter Inter State tax regn. no. Date"
                                        CssClass="input" Width="80px" />
                                    <asp:ImageButton ID="ImgBtnInterState" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxtoolkit:calendarextender id="CalExtInnerState" runat="server" targetcontrolid="TextBoxInterStateDate"
                                        popupbuttonid="ImgBtnInterState" format="dd/MM/yyyy" enabled="True">
                    </ajaxtoolkit:calendarextender>
                                    <ajaxtoolkit:maskededitextender id="MaskEditExtState" runat="server" culturename="en-GB"
                                        enabled="True" targetcontrolid="TextBoxInterStateDate" masktype="Date" displaymoney="Left"
                                        acceptnegative="Left" errortooltipenabled="True" mask="99/99/9999" cultureampmplaceholder="AM;PM"
                                        culturecurrencysymbolplaceholder="£" culturedateformat="DMY" culturedateplaceholder="/"
                                        culturedecimalplaceholder="." culturethousandsplaceholder="," culturetimeplaceholder=":">
                    </ajaxtoolkit:maskededitextender>
                                    <ajaxtoolkit:maskededitvalidator id="MaskEditValState" runat="server" controlextender="MaskEditExtState"
                                        controltovalidate="TextBoxInterStateDate" emptyvaluemessage="Date is Required"
                                        invalidvaluemessage="Date is Invalid" display="Dynamic" emptyvalueblurredtext="*"
                                        errormessage="MaskEditValState">
                    &nbsp;&nbsp;
                    </ajaxtoolkit:maskededitvalidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CHKServiceTax" runat="server" AutoPostBack="true" Text="Service Tax Regn. No." />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxServiceTax" runat="server" CssClass="input" ToolTip="Enter Service tax regn. no." />
                                </td>
                                <td>
                                    <asp:Label ID="LblServiceTaxDate" runat="server" Text="Date" />
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtDateServiceTax" runat="server" CssClass="input" Width="80px"
                                        ToolTip="Enter Service tax regn. no. Date" />
                                    <asp:ImageButton ID="ImgBtnServiceTax" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxtoolkit:calendarextender id="CalExtServiceTax" runat="server" targetcontrolid="TxtDateServiceTax"
                                        popupbuttonid="ImgBtnServiceTax" format="dd/MM/yyyy" enabled="True">
                    </ajaxtoolkit:calendarextender>
                                    <ajaxtoolkit:maskededitextender id="MaskEditExtService" runat="server" culturename="en-GB"
                                        enabled="True" targetcontrolid="TxtDateServiceTax" masktype="Date" displaymoney="Left"
                                        acceptnegative="Left" errortooltipenabled="True" mask="99/99/9999" cultureampmplaceholder="AM;PM"
                                        culturecurrencysymbolplaceholder="£" culturedateformat="DMY" culturedateplaceholder="/"
                                        culturedecimalplaceholder="." culturethousandsplaceholder="," culturetimeplaceholder=":">
                    </ajaxtoolkit:maskededitextender>
                                    <ajaxtoolkit:maskededitvalidator id="MaskEditValServiceTax" runat="server" controlextender="MaskEditExtService"
                                        controltovalidate="TxtDateServiceTax" emptyvaluemessage="Date is Required" invalidvaluemessage="Date is Invalid"
                                        display="Dynamic" emptyvalueblurredtext="*" errormessage="MaskEditValServiceTax">
                    &nbsp;&nbsp;
                    </ajaxtoolkit:maskededitvalidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CHKCentralExcise" runat="server" AutoPostBack="true" Text="Central Excise PA No." />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxCentralExcise" runat="server" CssClass="input" ToolTip="Enter Central Excise PA no." />
                                </td>
                                <td>
                                    <asp:Label ID="LBLCentralExcise" runat="server" Text="Date" />
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtDateCentralExcise" runat="server" CssClass="input" ToolTip="Enter Central Excise PA no. Date"
                                        Width="80px" />
                                    <asp:ImageButton ID="ImgBtnCentralExcise" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxtoolkit:calendarextender id="CalExtCentralExcise" runat="server" targetcontrolid="TxtDateCentralExcise"
                                        popupbuttonid="ImgBtnCentralExcise" format="dd/MM/yyyy" enabled="True">
                    </ajaxtoolkit:calendarextender>
                                    <ajaxtoolkit:maskededitextender id="MaskEditExtCentralExcise" runat="server" culturename="en-GB"
                                        enabled="True" targetcontrolid="TxtDateCentralExcise" masktype="Date" displaymoney="Left"
                                        acceptnegative="Left" errortooltipenabled="True" mask="99/99/9999" cultureampmplaceholder="AM;PM"
                                        culturecurrencysymbolplaceholder="£" culturedateformat="DMY" culturedateplaceholder="/"
                                        culturedecimalplaceholder="." culturethousandsplaceholder="," culturetimeplaceholder=":">
                    </ajaxtoolkit:maskededitextender>
                                    <ajaxtoolkit:maskededitvalidator id="MaskedEditValidator1" runat="server" controlextender="MaskEditExtCentralExcise"
                                        controltovalidate="TxtDateCentralExcise" emptyvaluemessage="Date is Required"
                                        invalidvaluemessage="Date is Invalid" display="Dynamic" emptyvalueblurredtext="*"
                                        errormessage="MaskedEditValidator1">
                    &nbsp;&nbsp;
                    </ajaxtoolkit:maskededitvalidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CHKLuxuryTax" runat="server" AutoPostBack="true" Text="Luxury Tax regn. No." />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxLuxuryTax" runat="server" CssClass="input" ToolTip="Enter Luxury Tax regn No." />
                                </td>
                                <td>
                                    <asp:Label ID="LblDateLuxuryTax" runat="server" Text="Date" />
                                </td>
                                <td>
                                    <asp:TextBox ID="DateLuxuryTax" runat="server" CssClass="input" Width="80px" ToolTip="Enter Luxury Tax regn No. Date" />
                                    <asp:ImageButton ID="ImgBtnLuxuryTax" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxtoolkit:calendarextender id="CalExtLuxuryTax" runat="server" targetcontrolid="DateLuxuryTax"
                                        popupbuttonid="ImgBtnLuxuryTax" format="dd/MM/yyyy" enabled="True">
                    </ajaxtoolkit:calendarextender>
                                    <ajaxtoolkit:maskededitextender id="MaskEditExtLuxury" runat="server" culturename="en-GB"
                                        enabled="True" targetcontrolid="DateLuxuryTax" masktype="Date" displaymoney="Left"
                                        acceptnegative="Left" errortooltipenabled="True" mask="99/99/9999" cultureampmplaceholder="AM;PM"
                                        culturecurrencysymbolplaceholder="£" culturedateformat="DMY" culturedateplaceholder="/"
                                        culturedecimalplaceholder="." culturethousandsplaceholder="," culturetimeplaceholder=":">
                    </ajaxtoolkit:maskededitextender>
                                    <ajaxtoolkit:maskededitvalidator id="MaskedEditValidator2" runat="server" controlextender="MaskEditExtLuxury"
                                        controltovalidate="DateLuxuryTax" emptyvaluemessage="Date is Required" invalidvaluemessage="Date is Invalid"
                                        display="Dynamic" emptyvalueblurredtext="*" errormessage="MaskedEditValidator2">
                    &nbsp;&nbsp;
                    </ajaxtoolkit:maskededitvalidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:Button ID="Button3" runat="server" Text="Save" CssClass="button" OnClick="Button3_Click" />
                                    &nbsp; &nbsp;
                                    <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="Close" CssClass="button" />
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>
    <div style="width: 100%; height: 4%">
        <div style=" background-image: url('../../Images/login/footer.jpg'); background-repeat: repeat-x;
            width: 100%; height: 47px;">
            <div align="right" style="padding-right: 10px; font-size: 13px; color: White; padding-top: 5px;
                height: 38px; margin-top: 1px;">
                Copyright &copy; Digital Info Solutions Pvt. Ltd.
            </div>
        </div>
    </div>
    </form>
</body>
</html>
